package com.catering.controller.untilController;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@CrossOrigin
public class PageFrontController {
	@RequestMapping("/login_f")
	public String login() {
		return "front/login";
	}
	@RequestMapping("/register")
	public String register() {
		return "front/register";
	}
	//主页
	@RequestMapping("/index")
	public String index() {
		return "front/index";
	}
	//商品列表
	@RequestMapping("/shop")
	public String shop() {
		return "front/shop";
	}
	//配送页面
	@RequestMapping("/sendpage")
	public String sendpage() {
		return "front/sendpage";
	}
	//产品分类
	@RequestMapping("/tof")
	public String tof() {
		return "front/tof";
	}
	//我的积分
	@RequestMapping("/points")
	public String points() {
		return "front/points";
	}
	//购物车
	@RequestMapping("/cart")
	public String cart() {
		return "front/cart";
	}
	//选规格
	@RequestMapping("/choosespaces")
	public String choosespaces() {
		return "front/choose";
	}
	//筛选商品
	@RequestMapping("/search")
	public String search() {
		return "front/search";
	}

	//个人中心
	@RequestMapping("/member")
	public String member() {
		return "front/member";
	}
	//商品详情
	@RequestMapping("/detail")
	public String detail() {
		return "front/detail";
	}

	//付款页面
	@RequestMapping("/pay")
	public String pay() {
		return "front/pay";
	}


	//地址列表
	@RequestMapping("/addresslist")
	public String addresslist() {
		return "front/address/addresslist";
	}
	//地址选择列表
	@RequestMapping("/addresscho")
	public String addresscho() {
		return "front/address/addresscho";
	}
	//地址新增
	@RequestMapping("/addressadd")
	public String addressadd() {
		return "front/address/addressadd";
	}
	//地址修改
	@RequestMapping("/addressedit")
	public String addressedit() {
		return "front/address/addressedit";
	}
	//地址弹窗新增
	@RequestMapping("/addresslayeradd")
	public String addresslayeradd() {
		return "front/address/addresslayeradd";
	}


	//我的订单列表
	@RequestMapping("/order")
	public String order() {
		return "front/order";
	}
	//订单详情
	@RequestMapping("/orderdetail")
	public String orderdetail() {
		return "front/order-detail";
	}
	//评价页面
	@RequestMapping("/discuss")
	public String discuss() {
		return "front/discuss";
	}
	@RequestMapping("/morediscuss")
	public String morediscuss() {
		return "front/more-discuss";
	}


	//客服
	@RequestMapping("/comments")
	public String comments() {
		return "front/comments";
	}
	//优惠券
	@RequestMapping("/coupon")
	public String coupon() {
		return "front/coupon/coupon";
	}
	//设置
	@RequestMapping("/setinfo")
	public String setinfo() {
		return "front/setinfo";
	}

	/**
	 * 商家模式
	 */
	//主页信息
	@RequestMapping("/business")
	public String business() {
		return "front/business/business";
	}
	//订单信息
	@RequestMapping("/busorder")
	public String busorder() {
		return "front/business/busorder";
	}
	//商品信息
	@RequestMapping("/busgoods")
	public String busgoods() {
		return "front/business/busgoods";
	}
	//用户信息
	@RequestMapping("/bususer")
	public String bususer() {
		return "front/business/bususer";
	}
	//资金信息
	@RequestMapping("/busmoney")
	public String busmoney() {
		return "front/business/busmoney";
	}


	/**
	 *  团购
	 */

	//团购首页
	@RequestMapping("/groupindex")
	public String groupindex() {
		return "front/groupbuying/index";
	}
	//团购活动详情
	@RequestMapping("/groupdetail")
	public String groupdetail() {
		return "front/groupbuying/detail";
	}
	//团购活动详情
	@RequestMapping("/grouppay")
	public String grouppay() {
		return "front/groupbuying/pay";
	}
	//团购活动详情
	@RequestMapping("/grouplist")
	public String grouplist() {
		return "front/groupbuying/groups";
	}
	//团购活动详情
	@RequestMapping("/buyingdetail")
	public String buyingdetail() {
		return "front/groupbuying/buyingdetail";
	}
}
